package com.kania.simpleemail.core;

import java.util.ArrayList;

import javax.mail.Folder;
import javax.mail.MessagingException;
import javax.mail.Store;

import android.os.Handler;

import com.kania.simpleemail.data.MailData;

public interface IMailReceiver {
	abstract public void open() throws MessagingException;
	
	abstract public void close() throws MessagingException;
	
	abstract public Store getStore() throws MessagingException;
	
	abstract public Folder getFolder() throws MessagingException;
	
	abstract public void getMessages(ArrayList<MailData> alMaildata, Handler mHandler) throws MessagingException;
	
	abstract public MailData getMessage() throws MessagingException;
}
